package com.yqg.protection.controller.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * projectName:xf-service1
 * author:zxf
 * time:2024/10/15 15:36
 * description:
 */
@Data
public class ImportVideoDeviceDto {

    @ExcelProperty(value = "设备名称(必填)",index = 0)
    @ApiModelProperty("设备名称")
    private String name;

    @ExcelProperty(value = "单位ID(必填)",index = 1)
    private Long clientId;

    @ExcelProperty(value = "组织ID(必填)",index = 2)
    private Long organization;

    @ExcelProperty(value = "设备编号(必填)",index = 3)
    @ApiModelProperty("设备编号")
    private String deviceId;

    @ExcelProperty(value = "appKey(必填)",index = 4)
    @ApiModelProperty("海康提供的appKey")
    private String appKey;

    @ExcelProperty(value = "secret(必填)",index = 5)
    @ApiModelProperty("海康提供的secret")
    private String secret;

//    @ExcelProperty(value = "是否绑定SIM卡",index = 6, converter = BindingConverter.class)
//    @ApiModelProperty("0未绑定SIM卡 ，1已绑定SIM卡")
//    private Integer deviceBindingSim;

    @ExcelProperty(value = "SIM卡号",index = 6)
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String simId;

    @ExcelProperty(value = "设备品牌",index = 7)
    @ApiModelProperty("设备品牌")
    private String deviceBrand;

    @ExcelProperty(value = "接入协议",index = 8)
    @ApiModelProperty("接入协议")
    private String accessProtocol;

    @ExcelProperty(value = "IP地址及端口号",index = 9)
    @ApiModelProperty("IP地址及端口号")
    private String ipPort;

    @ExcelProperty(value = "设备序列号(必填)",index = 10)
    @ApiModelProperty("设备序列号")
    private String deviceNum;

    @ExcelProperty(value = "监控点编号(必填)",index = 11)
    @ApiModelProperty("监控点编号")
    private String monitorNum;

    @ExcelProperty(value = "说明",index = 12)
    @ApiModelProperty("说明")
    private String explanation;

    @ApiModelProperty("监控设备识别码")
    @ExcelProperty(value = "监控设备识别码",index = 13)
    private String equipmentId;
}
